//
//  oneKeyLoginVC.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/2/2.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "oneKeyLoginVC.h"

@interface oneKeyLoginVC ()

@end

@implementation oneKeyLoginVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.titleView setHidden:YES];
    APPViewBorderRadius(self.back_view, 5, .5, [UIColor blackColor]);
    APPViewBorderRadius(self.oneLogin_btn, 5, .5, [UIColor blackColor]);
    [self.dissMiss_btn addTarget:self action:@selector(disMiss) forControlEvents:UIControlEventTouchUpInside];
    
    //设置字体颜色
    [self setTitleColor];
    
    //设置字体大小
    [self setTitleFont];
    
    //切换账户
    [self.change_btn addTarget:self action:@selector(changeView) forControlEvents:UIControlEventTouchUpInside];
}

-(void)setTitleColor{
    NSArray *titleArr = [NSArray arrayWithObjects:@"移动统一认证服务条款", nil];
    NSMutableAttributedString *str = [NSString ls_changeCorlorWithColor:[UIColor blueColor] TotalString:@"同意  移动统一认证服务条款" SubStringArray:titleArr];
    self.agree_btn.titleLabel.attributedText = str;
    
    NSArray *titleArr1 = [NSArray arrayWithObjects:@"用户协议", nil];
    NSMutableAttributedString *str1 = [NSString ls_changeCorlorWithColor:[UIColor blueColor] TotalString:@"登录即代表您同意用户协议" SubStringArray:titleArr1];
    self.protocol_btn.titleLabel.attributedText = str1;
    
    NSArray *titleArr2 = [NSArray arrayWithObjects:@"隐私政策", nil];
    NSMutableAttributedString *str2 = [NSString ls_changeCorlorWithColor:[UIColor blueColor] TotalString:@"和隐私政策" SubStringArray:titleArr2];
    self.secrect_btn.titleLabel.attributedText = str2;
}

-(void)setTitleFont{
    self.title_lab.font = self.tel_lab.font = AutoLabFont1;
    self.oneLogin_btn.titleLabel.font = self.change_btn.titleLabel.font = self.agree_btn.titleLabel.font = self.protocol_btn.titleLabel.font = self.secrect_btn.titleLabel.font = AutoLabFont2;    
}


//弹出视图消失
-(void)disMiss{
    [self dismissViewControllerAnimated:YES completion:nil];
}

//一键登录
- (IBAction)login:(id)sender {

}

-(void)changeView{
   
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
